<form id="app-form" class="layui-form layuimini-form">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">进位方式</label>
            <div class="layui-input-inline">
                <select name="carry_type" lay-filter="carry_type">
                    <option value=""></option>
                    {foreach carry_type_array as $key=>$val}
                    <option value="{$val.value}" {if $carry_type==$val.value}selected="" {/if}>{$val.name}</option>
                    {/foreach}
                </select>
            </div>
            <label class="layui-form-label">保留</label>
            <div class="layui-input-inline">
                <select name="reserve_digit" lay-filter="reserve_digit">
                    <option value=""></option>
                    {foreach reserve_digit_array as $key=>$val}
                    <option value="{$val.value}" {if $reserve_digit==$val.value}selected="" {/if}>{$val.name}</option>
                    {/foreach}
                </select>
                
            </div>
            <div class="layui-form-mid layui-text-em">位小数</div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">措施前计算</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="开始时间向前最多推" disabled>
            </div>
            <div class="layui-input-inline">
                <select name="measures_before_times" lay-filter="measures_before_times">
                    <option value=""></option>
                    {foreach measures_before_times_array as $key=>$val}
                    <option value="{$val.value}" {if $measures_before_times==$val.value}selected="" {/if}>{$val.name}</option>
                    {/foreach}
                </select>
                
            </div>
            <div class="layui-form-mid layui-text-em">次，每次间隔</div>
            <div class="layui-input-inline">
                <input type="text" name="measures_before_interval" class="layui-input" lay-verify="required|number"
                    placeholder="请输入时间间隔" value="{:benefitConfig('measures_before_interval')}">
            </div>
            <div class="layui-input-inline">
                <select name="measures_before_type" lay-filter="before_calculate_type">
                    <option value=""></option>
                    {foreach before_calculate_type_array as $key=>$val}
                    <option value="{$val.value}" {if $before_calculate_type==$val.value}selected="" {/if}>{$val.name}
                    </option>
                    {/foreach}
                </select>
            </div>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="产量高于" disabled>
            </div>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" lay-verify="required|number" name="measures_before_yl"
                    value="{:benefitConfig('measures_before_yl')}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">措施后计算</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="结束时间向后" disabled>
            </div>
            <div class="layui-input-inline">
                <input type="text" name="measures_after_interval" class="layui-input" lay-verify="required|number"
                    placeholder="请输入时间间隔" value="{:benefitConfig('measures_after_interval')}">
            </div>
            <div class="layui-input-inline">
                <select name="measures_after_type" lay-filter="after_calculate_type">
                    <option value=""></option>
                    {foreach after_calculate_type_array as $key=>$val}
                    <option value="{$val.value}" {if $after_calculate_type==$val.value}selected="" {/if}>{$val.name}
                    </option>
                    {/foreach}
                </select>
            </div>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" value="含水低于" disabled>
            </div>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" lay-verify="required|number" name="measures_after_hs"
                    value="{:benefitConfig('measures_after_hs')}">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">油价</label>
            <div class="layui-input-inline">
                <input type="text" name="oil_price" class="layui-input" lay-verify="required|number" placeholder="请输入油价"
                    value="{:benefitConfig('oil_price')}">
            </div>
        </div>
    </div>
    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="benefit.config/save"
            data-refresh="false">确认</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>
</form>